using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace HamcoWcs.Entitys.EdgeInfos
{
    public class EdgeInfoConfig : IEntityTypeConfiguration<EdgeInfo>
    {
        public void Configure(EntityTypeBuilder<EdgeInfo> builder)
        {
            builder.HasComment("路径模块-段信息");
            builder.Property(x => x.EdgeName).IsRequired().HasMaxLength(30).HasComment("起点node-终点node");
            builder.Property(x => x.FromNode).IsRequired().HasMaxLength(30).HasComment("起点wmsnode");
            builder.Property(x => x.ToNode).IsRequired().HasMaxLength(30).HasComment("终点wmsnode");
            builder.Property(x => x.ExcutePlc).IsRequired().HasMaxLength(30).HasComment("执行的PLC名");
            builder.Property(x => x.EdgeType).HasComment("段类型，功能区分用");
        }
    }
}